import 'package:bxultimate/app/theme/app_theme.dart';
import 'package:bxultimate/app/theme/gaps.dart';
import 'package:bxultimate/resources/assets.dart';
import 'package:bxultimate/widgets/mk_load_image.dart';
import 'package:flutter/material.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

class AppApproveCard extends StatefulWidget {
  const AppApproveCard({super.key});

  @override
  State<AppApproveCard> createState() => _AppApproveCardState();
}

class _AppApproveCardState extends State<AppApproveCard> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(
          left: AppTheme.iDefaultPadding,
          right: AppTheme.iDefaultPadding,
          bottom: AppTheme.iDefaultPadding / 2),
      decoration: BoxDecoration(
          color: Colors.white, borderRadius: BorderRadius.circular(8)),
      padding: EdgeInsets.all(AppTheme.iDefaultPadding),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Row(
            children: [
              MkLoadImage(
                Assets.organizationApprove,
                width: 40,
              ),
              Gaps.hGap12,
              Column(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    '我提交的入队申请',
                    style: TextStyle(fontWeight: FontWeight.bold),
                  ),
                  Gaps.vGap4,
                  Text(
                    '2023.11.11',
                    style: TextStyle(fontSize: 12),
                  ),
                ],
              )
            ],
          ),
          // Row(
          //   children: [
          //     TDButton(
          //       text: '通过',
          //       theme: TDButtonTheme.primary,
          //       size: TDButtonSize.small,
          //     ),
          //     Gaps.hGap12,
          //     TDButton(
          //       text: '拒绝',
          //       theme: TDButtonTheme.danger,
          //       size: TDButtonSize.small,
          //       type: TDButtonType.outline,
          //     )
          //   ],
          // )
          TDTag(
            '已通过',
            theme: TDTagTheme.primary,
            isOutline: true,
          )
        ],
      ),
    );
  }
}
